package com.wjerp.tplus.server.api.response;

import io.swagger.annotations.ApiModel;

import java.util.List;

/**
 * @author lishuailei
 */
@ApiModel("分页查询-返回对象")
public class PageDataResponse<T> {

    private Integer total;

    private List<T> dataList;

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }

    public PageDataResponse(Integer total, List<T> dataList) {
        this.total = total;
        this.dataList = dataList;
    }

    @Override
    public String toString() {
        return "PageDataResponse{" +
                "total=" + total +
                ", datas=" + dataList +
                '}';
    }
}
